package org.jcc.core.encode;


import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.Reader;

import org.apache.commons.io.FileUtils;

public class DefaultReader {
	public static void main(String[] args) throws Exception {
		File f = FileUtils.toFile(DefaultReader.class.getResource("/encoding/utf8_demo.txt"));
		Reader reader = new InputStreamReader(new FileInputStream(f), "iso-8859-1");
    	BufferedReader br = new BufferedReader(reader);
    	System.out.println(br.readLine());
    	br.close();
	}
}
